package xyz.xtt.schedule.message;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
public class TransferFromEvent {
	private Long from;
	private Long to;
	@Min(value = 1, message = "最少1个")
	@NotNull(message = "请提供数量")
	private Integer amount;
	@Schema(description = "业务方id")
	private String bizId;
	/**
	 * 第三方 支付单号
	 */
	private String orderNo;
	/**
	 * 售价
	 */
	private String price;
}
